package io.github.xxyopen.novel.dao.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.time.LocalDateTime;

public class PracticeComment {

    private Long id;            // 评论id
    private Long userId;        // 学生id
    private Long practiceId;    // 实践id
    private String comment;     // 评论内容
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;  // 评论时间
    private String nickName; // 用户名

    public String getUserPhoto() {
        return userPhoto;
    }

    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    private String userPhoto;

    // Getter and Setter methods
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getPracticeId() {
        return practiceId;
    }

    public void setPracticeId(Long practiceId) {
        this.practiceId = practiceId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    // toString() method for debugging purposes
    @Override
    public String toString() {
        return "BizPracticeComment{" +
                "id=" + id +
                ", userId=" + userId +
                ", practiceId=" + practiceId +
                ", comment='" + comment + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
